//
//  PolygonShape.m
//  WhatATool_
//
//  Created by Iphone Development Enrichment on 29/01/2010.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "PolygonShape.h"

@implementation PolygonShape

@synthesize numberOfSides, minimumNumberOfSides, maximumNumberOfSides, angleInDegrees, angleInRadians;

-(NSString*)getName;
{
	return name;
}

-(NSString*) setNumberOfSides: (int) n;
{
	if (n <= maximumNumberOfSides && n > minimumNumberOfSides)
		numberOfSides = &n;
	else
		return (@"Number %i is not within specified range", n);
}

@end


